package com.ruoyi.duty.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.UserMemberInfo;
import lombok.Data;

import java.util.Date;


/**
 * 工作日志视图对象 duty_gzrz
 *
 * @author xiaohao
 * @date 2023-01-19
 */
@Data
@ExcelIgnoreUnannotated
public class DutyGzrzVo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long gzrzId;

    @ExcelProperty(value = "工作人员")
    private Long memberId;

    @UserMemberInfo
    public Object getMemberInfo() {
        return memberId;
    }

    /**
     * 日期
     */
    @ExcelProperty(value = "日期")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    /**
     * 内容
     */
    @ExcelProperty(value = "内容")
    private String content;

    /**
     * 图片
     */
    @ExcelProperty(value = "图片")
    private String images;


}
